package com.skyd.core.android.game;

import android.graphics.Canvas;
import android.graphics.Rect;

/**
 * 处于中间节点的GameObject
 * 
 * @author SkyD
 * 
 */
public abstract class GameNodeObject extends GameObject {

	@Override
	protected void drawChilds(Canvas c, Rect drawArea) {
		GameObject o = getDisplayContentChild();
		if (o != null)
			drawChild(o,c, drawArea);
	}

	@Override
	protected void drawSelf(Canvas c, Rect drawArea) {

	}

	@Override
	protected void updateChilds() {
		GameObject o = getDisplayContentChild();
		if (o != null)
			o.update();
	}

	@Override
	protected void updateSelf() {

	}

}
